package gu.sql2java.manager;

import gu.sql2java.BaseBean;
import gu.sql2java.TableManager;
import gu.sql2java.TableManagerProvider;

/**
 * @author guyadong
 * @since 3.20.0
 */
public class TableManagerProviderImpl implements TableManagerProvider {

	@Override
	public <M extends TableManager<? extends BaseBean>> M instanceOf(Class<M> interfaceClass) {
		return Managers.instanceOf(interfaceClass);
	}

	@Override
	public <B extends BaseBean> TableManager<B> managerOf(String tablename) {
		return Managers.managerOf(tablename);
	}

	@Override
	public <B extends BaseBean> TableManager<B> managerOf(Class<B> beanType) {
		return Managers.managerOf(beanType);
	}

}
